﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class System_SystemInfo : EOS.Security.PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack)
            return;
        this.LabelOS.Text = Environment.OSVersion.ToString();
        this.LabelVersion.Text = Environment.Version.ToString();
        this.LabelPath.Text = Request.PhysicalApplicationPath;
        this.LabelPhysicalPath.Text = Request.PhysicalPath;
        this.LabelApplication.Text = EOS.Common.EOSConfiguration.ApplicationName;
        this.LabelInstance.Text = EOS.Common.EOSConfiguration.InstanceName;
        this.LabelCurrentPath.Text = Environment.CurrentDirectory;
        try
        {
            EOS.Common.CoBase cobase = new EOS.Common.CoBase();
            cobase.Connection.Open();
            this.LabelServerVersion.Text = cobase.Connection.ServerVersion;
            this.LabelDatabase.Text = cobase.Connection.WorkstationId;
        }
        catch (Exception exp)
        {
            base.ShowError(exp.ToString());
        }

    }
}